package com.tt.dp.factory.abs.productos;

import com.tt.dp.factory.abs.creator.PizzaIngredientFactory;
import com.tt.dp.factory.abs.ingredient.Sauce;

public class CheesePizza extends Pizza {

    private PizzaIngredientFactory pizzaIngredientFactory;

    public CheesePizza(PizzaIngredientFactory pizzaIngredientFactory){
        this.pizzaIngredientFactory = pizzaIngredientFactory;
    }

    @Override
    public void prepare() {
        this.sauce = pizzaIngredientFactory.createSauce();
        this.sauce.description();
    }
}
